package io.netty.myExample.duyutian.serializable;

import java.io.ByteArrayOutputStream;
import java.io.ObjectOutputStream;

/**
 * @author duyutian
 * @version 1.0
 * @date 2020/6/5 10:15
 */
public class Test {
    public static void main(String[] args) throws Exception {
        Student student = new Student();
        ByteArrayOutputStream info = new ByteArrayOutputStream();
        ObjectOutputStream ow = new ObjectOutputStream(info);
        ow.writeObject(student);
        //这个是正常序列化的大小
        info.size();




    }
}
